package com.payment.system.domain;

import com.payment.common.annotation.Excel;
import com.payment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;

/**
 * 商户升级表 hatchet_merchant_upgrade
 * 
 * @author payment
 * @date 2019-06-10
 */
public class MerchantUpgrade extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private String id;
	/** 商户id */

	private String merchantId;
	/** 手机号码 */
	@Excel(name = "手机号码")
	private String phone;
	/** 升级等级 */
	@Excel(name = "升级等级", readConverterExp = "0=未实名,1=普通用户,2=VIP,3=初级合伙人,4=中级合伙人,5=高级合伙人,6=超级合伙人,7=核心合伙人")
	private Integer level;
	/** 升级时间 */
	@Excel(name = "升级时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/** 商户名称 */
	@Excel(name = "商户名称")
	private String merchantName;
	@Excel(name = "升级类型", readConverterExp = "10A=手动升级,10B=自动升级")
	private String type;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setMerchantId(String merchantId) 
	{
		this.merchantId = merchantId;
	}

	public String getMerchantId() 
	{
		return merchantId;
	}
	public void setPhone(String phone) 
	{
		this.phone = phone;
	}

	public String getPhone() 
	{
		return phone;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setMerchantName(String merchantName) 
	{
		this.merchantName = merchantName;
	}

	public String getMerchantName() 
	{
		return merchantName;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("merchantId", getMerchantId())
            .append("phone", getPhone())
            .append("level", getLevel())
            .append("createTime", getCreateTime())
            .append("merchantName", getMerchantName())
            .toString();
    }

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
}
